LDMS Controller communication driver

 

LDMS Controller communication driver is the driver to communicate with controller of TTS.

 

1. Read Settings

 

<Figure 1> is read setting example of LDMS Controller communication driver.

<Figure 1>  Read setting example of LDMS Controller communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(19200), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to controller.

 

Note) Baud rate, station address of LDMS Controller can set by SB, SA write command.

 

LDMS Controller communication driver read schedule

1) Station – 0 ~ 10 station number. ( can change by SA write command )

2) Read command – Command = RP, RA, RIA, RIB, ROA, ROB, RH, RL, RU. ( refer to <table 1> )

3) Read start address –  don't care.

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – Fixed to 1.

 

Read schedule example)

READ,     1,    RP,     0,    0,   1,

READ,     1,    RH,     0,    1,   1,

READ,     1,    RL,     0,    2,   1,

 

<Table 1> is read command and contents of LDMS Controller communication driver.

Read command Contents Read data
RP Read Pressure pressure(FLOAT data format)
RA Read Address 1 ~ 10 controller station address
RIA Read Input A Input A/B value
1 : ON,  0 : OFF
RIB Read Input B
ROA Read Output A Output A/B value
1 : ON,  0 : OFF
ROB Read Output B
RH Read High Set Point High Set Point value(FLOAT data format)
RL Read Low Set Point Low Set Point value(FLOAT data format)
RU Read Unit unit value, also save at STRING memory,
1 = MBAR, 2 = PASCAL, 4 = TORR, 128 = otherŸ
<Table 1> Read command and contents of LDMS Controller communication driver

LDMS Controller communication driver store the same data in WORD, DWORD, FLOAT, STRING(only relating data, KU read command) memory, but the data format are different.

 If you click the icon  in protocol option part, you can see the dialog box such as <Figure 2>. you can also set read schedule by using this part.

<Figure 2> Example of LDMS Controller communication driver¡¯s Option dialog box

 

You can set read schedule by using , ,  button and listbox of <Figure 2>.

<Figure 3> Example of LDMS Controller communication driver¡¯s read schedule Add/Edit dialog box

When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> will be shown.

 

2. Writing settings

You can set LDMS controller by using 'writing settings'. 

 

Digital write

Digital write and analog write have the same setting parameters except output value(0 or 1).

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             0 ~ 10 station number. ( can change by SA write command )

3)  ADDRESS          don't care.

4)  Extra1                  write command = SA, SH, SL, SU, SPO, SB, RST, SF. ( refer to <Table 2> )

5) Extra2                   don't care.

 

<Table 1> is write command and contents of LDMS Controller communication driver. 

Write command Contents Range
SA Set Address Offset 1 ~ 10
SH High Set Point Write Float value
SL Low Set Point Write
SU Set Unit 1 = MBAR, 2 = PASCAL, 4 = TORR
SPO Set Pressure Offset 0 ~ 200,   100 = intermediate, unit = mV
SB Set Baud Rate 1 = 300 bps, 2 = 600 bps, 3 = 1,200 bps,
4 = 2,400 bps, 5 = 4,800 bps, 6 = 9,600 bps,
7 = 19,200 bps, 8 = 38,400 bps, 9 = 57,600 bps,
10 = 115,200 bps
RST Reset Module none, after writing initialize Default value
SF Set Frequency 1 = 10,  2= 50,  3 = 100,  4 = 200,  5 = 500
<Table 2> Write command and contents of LDMS Controller communication driver.

Write example 1)

PORT:0,  station:1, ADDRESS:000B, Extra1: SA,  Extra2 : 0

The setting parameter shown above is station address setting example. ( setting address range = 1 ~ 10 )

 

Write example 2)

PORT:0,  station:1, ADDRESS:000B, Extra1: SF,  Extra2 : 0

The setting parameter shown above is Frequency setting example. ( setting range = 1 ~ 5, real value = 10 ~ 500 )

 

Write example 2)

PORT:0,  station:1, ADDRESS:000B, Extra1: SU,  Extra2 : 0, Output value = 1

The setting parameter shown above is Unit setting example to MBAR.

 

3. Connection of communication cable and main power

Connection of communication cable and main power are as follows.

 

Connection of RS-485 communication cable

Please connect 8, 9 pin of 15pin socket and +, - connector of computer(RS-485) such as <Figure 3>.

<Figure 4> is appearance of  LDMS controller.

 

15pin socket of LDMS Controller           RS-485 of computer

                 8 pin (+) --------------------------   + connector

                 9 pin (-) --------------------------   - connector

 

 Connection of main power

Please connect main DC power to 1(+), 2(-) pin of 15pin socket such as <Figure 4>.

<Figure 4> Appearance of  LDMS controller